<?php foreach($images as $item):?>
	<img class="image" src="<?php echo $item;?>" width="100" height="100" />
<?php endforeach;?>
<script type='text/javascript'>
$(document).ready(function(){
	$(".image").live('click',function(){
		alert('d');
		window.parent.CKEDITOR.tools.callFunction("<?php echo $funcNum;?>", $(this).attr('src'), '');			
	});			
});


</script>
